package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {
    /**
     * 添加
     * @param nursingProjectPlan
     */
    void insert(NursingProjectPlan nursingProjectPlan);

    /**
     * 根据护理计划id查询
     * @param id
     * @return
     */
    List<NursingProjectPlanVo> selectByPlanId(Long id);

    /**
     * 根剧id删除项目
     * @param id
     */
    @Delete("delete from nursing_project_plan where plan_id = #{id}")
    void DeleteByPlanId(Long id);
}
